<template>
  <div class="attrPaneMain">
    <div class="header flex align-center justify-between">
      <span>{{ title }}</span>
      <i class="iconfont icon-guanbi2" @click="closeTap"></i>
    </div>
    <div class="body user-scroll-bar">
      <slot name="default" />
    </div>
  </div>
</template>
<script>
export default {
  props: {
    title: {
      type: String,
      default: '属性面板',
    },
  },
  data() {
    return {}
  },
  methods: {
    closeTap() {
      this.$emit('closePane')
    },
  },
  computed: {},
}
</script>
<style lang="scss" scoped>
.attrPaneMain {
  width: 290px;
  position: fixed;
  right: 0;
  top: 61px;
  bottom: 0;
  background: #006064;
  .header {
    height: 50px;
    padding-left: 15px;
    border-bottom: 1px solid rgb(13, 140, 145);
    span {
      font-size: 18px;
      color: #fff;
      font-weight: bold;
    }
    i {
      font-size: 12px;
      display: block;
      width: 50px;
      height: 50px;
      cursor: pointer;
      text-align: center;
      line-height: 50px;
      color: #fff;
    }
  }
  .body {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 10px;
    overflow-x: hidden;
  }
}
@media only screen and (max-width: 1650px) {
  .attrPaneMain {
    top: 53px;
  }
}
</style>
